/*

    particle.h - definition of the particle class
    Author Julio Agustin Barrera Mendoza
    Copyright (C) 2010 CINVESTAV-IPN.

    This program is free software; you can redistribute it and/or modify it 
    under the terms of the GNU General Public License as published by 
    the Free Software Foundation; either version 2 of the License, 
    or (at your option) any later version.

    This program is distributed in the hope that it will be useful, 
    but WITHOUT ANY WARRANTY; without even the implied warranty of 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
    General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to 
    the Free Software Foundation, Inc., 59 Temple Place, 
    Suite 330, Boston, MA 02111-1307 USA

*/

#ifndef PARTICLE_H
#define PARTICLE_H

#include "base/array.h"

// ------------------------------------------------------------------
// CLASS Particle
// ------------------------------------------------------------------

class Particle
{
  public:
    Array &Value(void) {return value;}
    const Array &Value(void) const {return value;}
    
    Array &BestValue(void) {return bestValue;}
    const Array &BestValue(void) const {return bestValue;}
    
    Array &Position(void) {return position;}
    const Array &Position(void) const {return position;}
    
    Array &BestPosition(void) {return bestPosition;}
    const Array &BestPosition(void) const {return bestPosition;}

    Array &Velocity(void) {return velocity;}
    const Array &Velocity(void) const {return velocity;}

  private:
    Array value;
    Array bestValue;
    Array position;
    Array bestPosition;
    Array velocity;
};

#endif
